package com.ossean.projectmanager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;

import com.ossean.projectmanager.projectsfilter.ProjectsFilter;

@Component
public class ProjectsFilterMain {
	@Qualifier("projectsFilter")
	@Autowired
	private ProjectsFilter projectsFilter;
	
	public void start(){
		projectsFilter.filtratePrjs();
	}
	
	public static void main(String[] args){
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:/applicationContext*.xml");
		ProjectsFilterMain mainClass = applicationContext.getBean(ProjectsFilterMain.class);
		mainClass.start();
	}
}
